package com.hualu.serverInfo.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="server_info")
public class ServerInfo {

    private Integer id;
    private Integer parentId;
    private String serverName;
    private String localIp;
    private String publicIp;
    private String ServerState;
    private String serverText;
    private Integer levelId;
    
    @Id @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="ID")
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    
    @Column(name="PARENT_ID")
    public Integer getParentId() {
        return parentId;
    }
    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    
    @Column(name="SERVER_NAME")
    public String getServerName() {
        return serverName;
    }
    public void setServerName(String serverName) {
        this.serverName = serverName;
    }
    
    @Column(name="LOCAL_IP")
    public String getLocalIp() {
        return localIp;
    }
    public void setLocalIp(String localIp) {
        this.localIp = localIp;
    }
    
    @Column(name="PUBLIC_IP")
    public String getPublicIp() {
        return publicIp;
    }
    public void setPublicIp(String publicIp) {
        this.publicIp = publicIp;
    }
    
    @Column(name="SERVER_STATE")
    public String getServerState() {
        return ServerState;
    }
    public void setServerState(String serverState) {
        ServerState = serverState;
    }
    
    @Column(name="SERVER_TEXT")
    public String getServerText() {
        return serverText;
    }
    public void setServerText(String serverText) {
        this.serverText = serverText;
    }
    
    @Column(name="LEVEL_ID")
    public Integer getLevelId() {
        return levelId;
    }
    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }
}
